
public class CustomHashMap1 extends CustomHashMap {
	public CustomHashMap1(int s) {
		super(s);
	}
	
	@Override
	protected int hash(String key) {
		int hash = 0;

		for (int i=0; i<key.length(); i++) {
			hash += (int)key.charAt(i) * (i+1);
		}
		return hash % size;
	}
}
